<script setup>
import { useRoute } from 'vue-router'
import { House, UserFilled, User, OfficeBuilding, Avatar } from '@element-plus/icons-vue'
const route = useRoute()
</script>
<template>
  <el-menu
    :default-active="route.path"
    class="el-menu-vertical-demo"
    background-color="#f5f5f5"
    text-color="#333"
    active-text-color="#409EFF"
    router
  >
    <el-menu-item index="/home">
      <el-icon><House /></el-icon>
      首页
    </el-menu-item>
    <el-sub-menu index="2">
      <template #title>
        <el-icon><UserFilled /></el-icon>
        班级学员管理
      </template>
      <el-menu-item index="/class-manage">
        <el-icon><UserFilled /></el-icon>
        班级管理
      </el-menu-item>
      <el-menu-item index="/student-manage">
        <el-icon><User /></el-icon>
        学员管理
      </el-menu-item>
    </el-sub-menu>
    <el-sub-menu index="3">
      <template #title>
        <el-icon><OfficeBuilding /></el-icon>
        系统信息管理
      </template>
      <el-menu-item index="/dept-manage">
        <el-icon><OfficeBuilding /></el-icon>
        部门管理
      </el-menu-item>
      <el-menu-item index="/staff-manage">
        <el-icon><Avatar /></el-icon>
        员工管理
      </el-menu-item>
    </el-sub-menu>
  </el-menu>
</template> 